import 'dart:convert';
import 'package:testlzhu/generated/json/base/json_field.dart';
import 'package:testlzhu/generated/json/loginbean_entity.g.dart';

@JsonSerializable()
class LoginbeanEntity {

	LoginbeanUserinfo? userinfo;
  
  LoginbeanEntity();

  factory LoginbeanEntity.fromJson(Map<String, dynamic> json) => $LoginbeanEntityFromJson(json);

  Map<String, dynamic> toJson() => $LoginbeanEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class LoginbeanUserinfo {

	int? id;
	String? mobile;
	String? nickname;
	int? sex;
	String? realname;
	String? avatar;
	int? parentid;
	int? grandparentid;
	String? regfrom;
	int? regfromactivity;
	int? regtime;
	int? groupid;
	int? islock;
	String? wxunionid;
	String? wxopenid;
	String? appopenid;
	String? miniopenid;
	String? aliuserid;
	int? identity;
	int? shopid;
	int? shopstatus;
	int? firmid;
	String? firmname;
	int? starcount;
	int? fancount;
	int? cityid;
	String? citytitle;
	int? viplevel;
	int? vipexpirytime;
	int? svipexpirytime;
	int? tvipexpirytime;
	int? vipopentype;
	String? creditscore;
	String? setting;
	int? vipdays;
	int? usertag;
	int? roleid;
	@JSONField(name: "oa_join_company_id")
	String? oaJoinCompanyId;
	@JSONField(name: "oa_avatar")
	String? oaAvatar;
	String? buyericon;
	String? sellericon;
	@JSONField(name: "oa_company_role")
	int? oaCompanyRole;
	@JSONField(name: "is_pa_test")
	int? isPaTest;
	@JSONField(name: "pay_pwd")
	String? payPwd;
	@JSONField(name: "pay_pwd_salt")
	String? payPwdSalt;
	String? token;
  
  LoginbeanUserinfo();

  factory LoginbeanUserinfo.fromJson(Map<String, dynamic> json) => $LoginbeanUserinfoFromJson(json);

  Map<String, dynamic> toJson() => $LoginbeanUserinfoToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}